<template>
  <div>
    <el-carousel height="200px">
      <el-carousel-item v-for="(item,index) in pics" :key="index">
        <img :src="item.url">
      </el-carousel-item>
    </el-carousel>
  </div>

</template>

<script>
  export default {
    data() {
      return {
        pics: [
          {
            url: require('../../../static/banner/banner1.jpg'),
          },
          {
            url: require('../../../static/banner/banner2.jpg'),
          },
          {
            url: require('../../../static/banner/banner3.jpg'),
          }
        ]
      }
    }
  }
</script>

<style lang="less" scoped>
  img {
    width: 100%;
    height: 100%;
  }
</style>
